<template>
  <div id="app">
    <el-row>
  <el-button>默认按钮</el-button>
  <el-button type="primary">主要按钮</el-button>
  <el-button type="success">成功按钮</el-button>
  <el-button type="info">信息按钮</el-button>
  <el-button type="warning">警告按钮</el-button>
  <el-button type="danger">危险按钮</el-button>
</el-row>

    <router-view/>
  </div>
</template>
<script>
import request from '@/utils/request'
import { setToken } from '@/utils/storage'
export default {
  async created () {
    const res = await request.post('/auth/login', {
      username: 'admin8',
      password: 'admin'
    })
    console.log(res)
    setToken(res.data.data.token)
  }
}
</script>

<style lang="scss">

</style>
